package com.share.user.api.feign;


import com.share.common.core.domain.R;
import com.share.common.core.web.domain.AjaxResult;
import com.share.user.api.domain.UserInfo;
import com.share.user.api.factory.RemoteUserFallbackFactory;
import jakarta.servlet.http.HttpServletRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(
        contextId = "remoteUserInfoService",
        name = "share-user",
        fallbackFactory = RemoteUserFallbackFactory.class
)
public interface UserServiceFeign {

    @GetMapping("/userInfo/wxLogin/{code}")
    public R<UserInfo> wxLogin(@PathVariable("code") String code);

    @GetMapping(value = "/userInfo/getUserInfo/{id}")
    public R<UserInfo> getInfo(@PathVariable("id") Long id);

}
